package com.diaosidadui.array;

import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        int[] arr ={11,54,6,44,33,65,33,33};

        Scanner sc = new Scanner(System.in);
        int query =sc.nextInt();
//        int index =-1;
        int count =0;
        for (int i = 0; i < arr.length; i++) {
            //arr[i]
//            index = query==arr[i]? i:index ;
            if(query==arr[i]){
                count++;
                System.out.println("查询的数字索引是"+i);

            }
        }
        if(count ==0){
            System.out.println("查询的数字不存在");
        }
//arr[i] == querry






    }
}
